$(function(){
	slf.ajax({
		url:'/video/getVideo',
		success:function(data){
			console.log(data)
			var videoHtml='';
			if(data.obj.length <= 0){
				videoHtml += '<img src="../img/zwsj.png" alt="img" style="width:100%">';				
			}else{
				//TODO  视频是否需要对应的图片
				for(var i = 0,b=data.obj.length;i < b; i++){
					videoHtml+='<li class="videoLi">'
					videoHtml+='<div class="videoTitle">'     
					videoHtml+='<span class="videoName"><span id="videos">'+data.obj[i].title+'</span></span>'         
					videoHtml+='<span class="videoTime">'+data.obj[i].createDate+'</span>'        
					videoHtml+='</div>'     
					/*videoHtml+='<div class="videoDesc">简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介</div>'     */
					videoHtml+='<div class="example_video">'    
					videoHtml+='<video id="example_video_'+i+'" class="video-js vjs-default-skin" controls preload="none"  poster="http://vjs.zencdn.net/v/oceans.png">'        
					videoHtml+='<source src="'+data.obj[i].url+'" type="video/mp4">'		    
					videoHtml+='</video></div></li>'		
				}
			}
			$('.am-avg-sm-1.zxhd_div_ul').html(videoHtml);
		}
	});
	
});
//进入商城
function seeShopp(){
	window.location.href = "shopp.html"
}
//进入个人中心
function checkPer(){
	var loginNum=slf.checkSign()
	if(loginNum==1||loginNum=="1"){
		//已登录
		window.location.href = "personal/index.html"
	}else if(loginNum==0||loginNum=="0"){
		//未登录
		window.location.href = "personal/noLogin.html"
	}
}